package com.ly.emp.bean.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;

/**
 * 工单登记-详情-dto
 *
 * @author luoyun
 * @Date: 2023-05-18
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "按事按人登记录入-详情")
public class TeamResultOrderDetailDTO {

    @Schema(description = "主键")
    private String id;

    @Schema(description = "录入模式：10按事 20按人 30二维表登记 40其它系统")
    @NotBlank(message = "录入模式不能为空")
    private String addMode;

    @Schema(description = "录入任务外键：按事登记时，必输")
    private String orderId;

    @Schema(description = "工号：")
    private String psnNum;

    @Schema(description = "姓名")
    private String psnName;

    @Schema(description = "组织编码")
    private String orgCode;

    @Schema(description = "组织名称")
    private String orgName;

    @Schema(description = "单位次数")
    private String unit;

    @Schema(description = "标准分值")
    private BigDecimal stdscore;

    @Schema(description = "工作量得分")
    private BigDecimal workPoints;

    @Schema(description = "质量得分")
    private BigDecimal qspoints;

    @Schema(description = "累积得分：工作量得分 + 质量得分")
    private BigDecimal sumPoints;

    @Schema(description = "备注：参数 json")
    private String reamrk;
}
